import {postRequest} from "@/utils/request";

/**
 * 根据课程名称和查询课程信息
 */
export function selectElectiveApi(data) {
    return postRequest(
        "/elective-info-entity/selectElective",
        data
    );
}


/**
 * 删除授课信息
 */
export function deleteElectiveApi(data) {
    return postRequest(
        "/elective-info-entity/deleteElective",
        data
    );
}


/**
 * 修改授课信息
 */
export function updateElectiveApi(data) {
    return postRequest(
        "/elective-info-entity/updateElective",
        data
    );
}

/**
 * 新增课程信息
 */
export function addElective(data) {
    return postRequest(
        "/elective-info-entity/addElective",
        data
    );

    /**
     * 获取批次
     */
// export function addCouserApi(data) {
//     return postRequest(
//          "/course/addCourse",
//         data
//         );
}